$(function() {
	$.post("selectActivity", function(data) {
		if(data.code == 0) {
			var rel = data.data
			var html = '';
			for(var i in rel) {
				html += '<li code="'+rel[i].活动代码+'"><div class="left"><img src="img/6.png"></div>';
				html+='<div class="right">'+rel[i].活动名称+'</div></li>'
			}
			$(".mui-content").html(html)
			$(".mui-content li").click(function(){
				var code=$(this).attr("code")
				sessionStorage.setItem("code",code)
				var name=$(this).find(".right").text()
				sessionStorage.setItem("name",name)
				window.location.href="xzjp"
			})
		} else {
			mui.alert(data.msg)
		}
	})
})